# -*- coding: utf-8 -*-
"""
Created on Wed Sep 27 21:44:50 2017

@author: Luther
"""

n = int(input('type a number:'))


def proc(n):
    if n < 0:
        n = -n
        print('-', end='')
    if n // 10 != 0:
        proc(n // 10)
    print(n % 10, end='')


proc(n)
